// https://docs.cypress.io/api/introduction/api.html

describe('My First Test', () => {
  it('Visits the app root url', () => {
    cy.visit('http://localhost:8081/')
    cy.get('input[type="password"]').type('123')
    cy.get('button').click()
    cy.contains('Dapianzi Test').click()
    cy.get('.ivu-menu-item span').contains('Dapianzi Test3').click()
    cy.get('span.ivu-alert-desc').should('contain', '总会有一些 善良的狗 心中藏着秘密')
    cy.get('.ivu-menu-item span').contains('Dapianzi Test2').click()
    cy.get('textarea').should('have.value', 'Love movies, games, mathematics, physics, astronomy')
  })
})
